package com.micro.user.api;

import com.micro.user.vo.UserVo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface UserAddFeign {

    String SERVICE_NAME = "user";

    @PostMapping("/addUser")
    String addUser(@RequestBody UserVo user);

    @GetMapping("/listUser")
    List<UserVo> listUser(@RequestParam("name") String name,
                          @RequestParam("age") Integer age);

    @PostMapping("/removeUser")
    Integer removeUser(@RequestParam("name") String name);


}
